//传来的值
export type Receive = {
  countData: DataLocal;
  day_data: DayData[];
};

export type DayData = {
  time: string;
  total: string;
  color: string;
};
//表格值
export type DataLocal = {
  shop: {
    today: Array<Count>;
    month: Array<Count>;
    form: Array<Column>;
  };
  single: {
    count: Array<Count>;
    today: ColumnMore;
    month: ColumnMore;
  };
};

//模块
export type Count = {
  title: string; //标题
  num: number; //数量
  unit: string; //单位
  icon: string; //图标
};

//单柱状图
export type Column = {
  title: string; //标题
  tooltip?: string; //提示符
  x: Array<string>; //横轴数据
  s: {
    title: string; //提示标题
    data: Array<number>; //数据
  };
};

//多柱状图
export type ColumnMore = {
  width: number; //表格宽
  height: number; //表格高
  title: string; //标题
  tooltip?: string; //提示符
  dataset: Array<Array<string | number>>; //数据
};
